package com.woniuxy.location.service.impl;

import com.woniuxy.commons.entity.DisabledAddress;
import com.woniuxy.location.mapper.AddressMapper;
import com.woniuxy.location.service.AddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {
    @Resource
    private AddressMapper addressMapper;

    @Override
    public void addAddress(DisabledAddress address) {
        addressMapper.addAddress(address);
    }

    @Override
    public List<DisabledAddress> findAddressByDisabledId(int did) {
        return addressMapper.findAddressByDisabledId(did);
    }

    @Override
    public void delAddressById(int id) {
        addressMapper.delAddressById(id);
    }

    @Override
    public void updateAddress(DisabledAddress address) {
        addressMapper.updateAddress(address);
    }
}
